﻿using System;
using System.Collections.Generic;

namespace oueb
{
    using oueb.Ceen;
    using oueb.core;
    public interface IOuebServer
    {
        public bool Runing { get; }
        public long MaxPostSize { get; set; }
        public IEnumerable<OuebUri> Uris { get; }
        public IOuebServer SetServerName(string servername);
        public IOuebServer SetListenUris(params string[] uris);
        public IOuebServer Listen();
        public IOuebServer Shutdown();
        public IOuebServer UseCors(Action<CorsBuilder> corsBuilderAction);
        public IOuebServer AddRoute(string path, IHttpModule deal);
        public IOuebServer AddRoute(IHttpModule deal);
    }
}
